﻿using Common.Data.Extensions;
using DataCenter.Configuration;
using DataCenter.Model.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataCenter.Data.DBConfig
{
    public class OrganizationConfiguration : DBConfig<Organization>
    {
        public OrganizationConfiguration()
            : base(SystemConfiguration.Schema, SystemConfiguration.NamingType, SystemConfiguration.TABLE_PREFIX)
        {
            HasKey(k => k.OrgCode);
            Property(c => c.OrgName).HasMaxLength(50).IsRequired();
        }
    }
}
